/**
 * Copyright (c) 2014- 2015 YCY Group Holding Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.jkwzms.system.group.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jkwzms.system.group.repository.GroupRelationRepository;

/**
 * 清理无关联的关系 1、Group-GroupRelation 2、GroupRelation-User 3、GroupRelation-Organization 4、GroupRelation-Job
 * <p/>
 * <p>
 * User: Jack Liang
 * <p>
 * Date: 13-5-13 下午5:35
 * <p>
 * Version:1.0.0
 */
@Service
public class GroupClearRelationTask {

    @Autowired
    private GroupRelationRepository groupRelationRepository;

    /**
     * 清除删除的分组对应的关系
     */
    public void clearDeletedGroupRelation() {
        groupRelationRepository.clearDeletedGroupRelation();
    }

}
